import httpmaker from '@/utils/initAxios.js'
export const mk = function (user, path) {
  const param = new URLSearchParams()
  param.append('user', user)
  param.append('path', path)
  return httpmaker.post('bfile/mkdir/', param)
}
export const rename = function (user, oldName, fname, path, type) {
  const param = new URLSearchParams()
  param.append('user', user)
  param.append('oldName', oldName)
  param.append('fname', fname)
  param.append('path', path)
  param.append('type', type)
  return httpmaker.post('bfile/rename/', param)
}
